using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using UsingLib;
using log4net.Core;
using System.Runtime.CompilerServices;

namespace WinTest
{
    public partial class frmTestUsing : Form
    {
        public frmTestUsing()
        {
            InitializeComponent();
        }
        //[MethodImpl(MethodImplOptions.NoInlining)]
        private void btnCursor_Click(object sender, EventArgs e)
        {
            using (usingLog4Net u = new usingLog4Net(Level.Info))
            {
                u.LogText("before cursor");
                using (usingCursor c = new usingCursor(this.Cursor))
                {

                    System.Threading.Thread.Sleep(10 * 1000);
                    
                
                }
                u.LogText("after cursor");
            }
        }
    }
}